package com.jeesite.modules.demo.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * demo_customerEntity
 * @author ccz
 * @version 2025-03-19
 */
@Table(name="demo_customer_info", alias="a", label="demo_customer信息", columns={
		@Column(name="id", attrName="id", label="编号", isPK=true),
		@Column(name="demo_customer_id", attrName="demoCustomerId.id", label="客户编号"),
		@Column(name="email", attrName="email", label="邮箱"),
		@Column(name="district", attrName="district", label="地区"),
		@Column(name="address", attrName="address", label="地址"),
		@Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_by", attrName="updateBy", label="修改人", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="修改时间", isQuery=false),
		@Column(name="remark", attrName="remark", label="备注信息"),
	}, orderBy="a.create_date ASC"
)
public class DemoCustomerInfo extends DataEntity<DemoCustomerInfo> {
	
	private static final long serialVersionUID = 1L;
	private DemoCustomer demoCustomerId;		// 客户编号 父类
	private String email;		// 邮箱
	private String district;		// 地区
	private String address;		// 地址
	private String remark;		// 备注信息

	public DemoCustomerInfo() {
		this(null);
	}

	public DemoCustomerInfo(DemoCustomer demoCustomerId){
		this.demoCustomerId = demoCustomerId;
	}
	
	public DemoCustomer getDemoCustomerId() {
		return demoCustomerId;
	}

	public void setDemoCustomerId(DemoCustomer demoCustomerId) {
		this.demoCustomerId = demoCustomerId;
	}
	
	@Size(min=0, max=64, message="邮箱长度不能超过 64 个字符")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Size(min=0, max=64, message="地区长度不能超过 64 个字符")
	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}
	
	@Size(min=0, max=255, message="地址长度不能超过 255 个字符")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Size(min=0, max=255, message="备注信息长度不能超过 255 个字符")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}